Revisit menu button style
authorMatthias Clasen <mclasen@redhat.com>
Fri, 30 Oct 2015 05:07:27 +0000 (01:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Oct 2015 05:07:27 +0000 (01:07 -0400)
Change the style class to .menubutton, to avoid interference
from GtkMenu theming.

gtk/gtkmenubutton.c

index bfe6996945e71d44d1105baf650842f4379fc715..54f895fe3b4a2dbe1f0d756fc9698aeb62cb8c92 100644 (file)
  * # CSS nodes
  *
  * GtkMenuButton has a single CSS node with name button. To differentiate
- * it from a plain #GtkButton, it gets the .menu style class.
+ * it from a plain #GtkButton, it gets the .menubutton style class.
  */
 
 #include "config.h"
@@ -673,7 +673,7 @@ gtk_menu_button_init (GtkMenuButton *menu_button)
   gtk_widget_set_sensitive (GTK_WIDGET (menu_button), FALSE);
 
   context = gtk_widget_get_style_context (GTK_WIDGET (menu_button));
-  gtk_style_context_add_class (context, "menu");
+  gtk_style_context_add_class (context, "menubutton");
 }
 
 /**